# 读取文件
import csv

# 读取分段文件模块
# path:文件路径
# column_probes:分段指针数是哪一列
# column_log_ratio:分段拷贝数值是指哪一列
# sample_numbers:样本总数

class ImportFile:
    # path:文件路径
    # column;读取某一列（第五列则填4）
    def import_column_in_csv(self,path, column):
        with open(path, newline='') as csvfile:
            csv_reader = csv.reader(csvfile, delimiter='\t', quotechar='|')
            column_data = [row[column] for row in csv_reader]
        return column_data